package com.mdp.im.core.utils;

public class TopicTools {

	/**
	 * 组消息监听队列名字 im_group@{groupId}
	 * @param groupId
	 * @return
	 */
	public static String getGroupTopicName(String groupId) {
		return MQChannelNames.IM_GROUP + "@" + groupId ;
	}

	/**
	 * 私聊消息监听队列名字 im_prichat@{hostAddress}
	 * @return
	 */
	public static String getPrichatTopicName(String hostAddress) {
		return MQChannelNames.IM_PRICHAT + "@" + hostAddress;
	}
	/**
	 * 系统公告消息监听队列名字 im_sys
	 * @return
	 */
	public static String getSysTopicName(){
		return MQChannelNames.IM_SYS;
	}
}
